import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sub = new Scanner(System.in);
        int a = sub.nextInt();
        int b = sub.nextInt();
        int c = sub.nextInt();

        int aver = (a+b+c)/3;
        if(aver >= 60){
            System.out.println("NO");
        }else{
            System.out.println("YES");
        }
    }
}
